import request from "../utils/service";


//流程定义查询
function processesDefinitionPage(data) {
    return request('/workflow/processes/definition/page', data)
}

//流程实例分页查询
function processesInstancePage(data) {
    return request('/workflow/processes/instance/page', data)
}

//历史流程实例查询
function historyProcessesInstancePage(data) {
    return request('/workflow/processes/history/instance/page', data)
}

//开启工作流
function startProcessInstance(data) {
    return request('/workflow/start/process', data)
}

//删除工作流实例
function deleteProcessInstance(data) {
    return request('/workflow/delete/process', data)
}

//删除历史工作流
function deleteHistoryProcessInstance(data) {
    return request('/workflow/delete/history/process', data)
}

//暂停工作流实例
function suspendProcessInstance(data) {
    return request('/workflow/suspend/process', data)
}




export default {
    processesDefinitionPage,
    processesInstancePage,
    historyProcessesInstancePage,
    startProcessInstance,
    deleteProcessInstance,
    suspendProcessInstance,
    deleteHistoryProcessInstance
}